Release 10.1A: OpenEdge Development:
Progress Dynamics Getting Started


Setting links for the new page

The links that define how data and event messages are passed between objects are normally defined in the template. When you replace the template objects with real application objects, those links are established between the real objects in your application window.

But in this case, you added a template for another page to the basic one-page folder template. As you saw, you had to identify the key values to be passed in to the Order SDO on Page 2. You also must define a link between your container window and that SDO, so the framework can route the data.

To set the links:

  1. Choose the Links Maintenance button in the Container Builder toolbar. The Links Maintenance window displays all the existing links for your window, as shown:
  2. Note: These are the links for both template containers.

  3. Choose New.
  4. Select THIS-OBJECT as the Source, Data as the Link, and OrderSDO as the Target. Then save the new link.
  5. Note: If you do not see the appropriate choice in the lists, choose the Filter from source button under the list.

  6. Choose New.
  7. Select THIS-OBJECT as the Source, Data as the Link, and CustomerViewer as the Target. Then save the new link.
  8. Verify that all of the links in the following table are listed:
  9. Source
    Link
    Target
    Description
    afspfoldrww
    Page
    THIS-OBJECT
    Enables folder to communicate to container for page handling.
    CustomerViewer
    Update
    THIS-OBJECT
    Saves customer changes back to customer SDO.
    OrderlineSDO
    Data
    OrderlineBrowse
    Passes orderline data values to orderline browse.
    OrderSDO
    Data
    OrderBrowse
    Passes order data values to order browse.
    OrderSDO
    Data
    OrderlineSDO
    Passes order data (foreign field key) to order line SDO.
    StandardToolbar
    ContainerToolbar
    THIS-OBJECT
    Enables toolbar to execute container functions.
    StandardToolbar
    Navigation
    THIS-OBJECT
    Notifies SDO to navigate through data records.
    StandardToolbar
    TableIO
    CustomerViewer
    Enables toolbar to request customer viewer to allow changes.
    THIS-OBJECT
    Data
    OrderSDO
    Passes customer data (foreign field key) to order SDO.
    THIS-OBJECT
    Data
    CustomerViewer
    Passes customer data to customer viewer.

    THIS-OBJECT represents the container window for the tab folder. The Customer key values pass through the container from the Customer Browse Window that calls it. When constructing the window, you treat the container as if it were the source of the data values.

  10. Exit the Links Maintenance window.
  11. Choose Save in the Container Builder toolbar, then exit the Container Builder.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095